﻿using Blazor.Diagrams.Core.Geometry;
using Blazor.Diagrams.Core.Models;
using OnWork.DataCenter.DAL.DataCenter;

namespace OnWork.DataCenter.Shared.Pages.DataStandard.Designer
{
    /// <summary>
    /// 标准节点类型
    /// </summary>
    public class StandardNode : NodeModel
    {
        public StandardNode(Point position = null) : base(position)
        {

        }

        public StandardNode(string id, Point? position = null) : base(id,position)
        {

        }

        /// <summary>
        /// 主键
        /// </summary>
        public long ID { get; set; }

        /// <summary>
        /// 配置名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        ///需要解析的数据示例
        /// </summary>
        public string DataDemo { get; set; }

        /// <summary>
        /// 数据类型
        /// </summary>
        public DataStandardType DataType { get; set; } = DataStandardType.Json;

        /// <summary>
        /// 输出类型
        /// </summary>
        public DataStandardType OutType { get; set; } = DataStandardType.DataTable;

        /// <summary>
        ///标准配置
        /// </summary>
        public string StandardConfig { get; set; }
    }
}